<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/30
 * Time: 16:07
 */
namespace app\web\validate;

use think\Validate;

class BranchesValidate extends Validate
{
    protected $rule = [
        'join_branches' => 'require',
        'linkman' => 'require',
        'phone' => 'require',
        'remark' => 'require',
    ];
    protected $message = [
        'join_branches.require' => '请指定加盟网点！',
        'linkman.require' => '联系人不能为空！',
        'phone.require' => '联系电话不能为空！',
        'remark.require' => '备注不能为空！',
    ];

    protected $scene = [
//        'add'  => ['user_login,user_pass,user_email'],
//        'edit' => ['user_login,user_email'],
    ];
}